package com.sdp.lease.db.l_supplier.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2024-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("l_supplier")
public class LSupplier extends Model<LSupplier> {

    private static final long serialVersionUID=1L;

    /**
     *  内码
     */
    @TableId("key_id")
    private String keyId;

    /**
     * 供应商名称
     */
    @TableField("supplier_name")
    private String supplierName;

    /**
     * 统一社会信用代码
     */
    @TableField("supplier_uscc")
    private String supplierUscc;

    /**
     * 经营范围
     */
    @TableField("supplier_business_scope")
    private String supplierBusinessScope;

    /**
     * 供应商logo
     */
    @TableField("supplier_logo")
    private String supplierLogo;

    /**
     * 供应商地址
     */
    @TableField("supplier_address")
    private String supplierAddress;

    /**
     * 联系人
     */
    @TableField("supplier_contact")
    private String supplierContact;

    /**
     * 联系方式
     */
    @TableField("supplier_contact_way")
    private String supplierContactWay;

    /**
     * 授权书
     */
    @TableField("supplier_loa")
    private String supplierLoa;

    /**
     * 供应商账号
     */
    @TableField("supplier_account_no")
    private String supplierAccountNo;
    
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;
    
    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
